package com.solution.admin.product.dao;

import java.util.List;
import java.util.Map;

import com.solution.admin.product.entity.ProductRecommendEntity;
import com.solution.common.dao.BaseDao;

/**
 * 商品推荐DAO接口
 * 
 * @author xu_cc
 * @date 2017-08-31 23:39:07
 */
public interface ProductRecommendDao extends BaseDao<ProductRecommendEntity> {

    /**
     * 保存商品推荐
     * 
     * @param ebProductRecommendEntity
     * @return
     * @author xu_cc
     * @date 2017-08-31 23:39:07
     */
    public long saveProductRecommend(ProductRecommendEntity ebProductRecommendEntity);

    /**
     * 删除商品推荐角色
     * 
     * @param id
     * @return
     * @author xu_cc
     * @date 2017-08-31 23:39:07
     */
    public int deleteByProductId(Long id);

    /**
     * 根据商品推荐类型获取商品推荐
     * 
     * @param param
     * @return
     * @author xu_cc
     * @date 2017-08-31 23:39:07
     */
    public List<ProductRecommendEntity> listProductRecommend(Map<String, Object> param);
}
